<include file="public@header"/>
</head>
<body>
	<div class="wrap ">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Annex/index')}">附件管理</a></li>
			<li><a href="{:url('Annex/add')}">附件添加</a></li>
			<li class="active"><a href="{:url('Annex/edit',array('id'=>$id))}">附件编辑</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('Annex/edit_post')}" method="post" >
			<fieldset>
				<div class="control-group">
					<label class="control-label">{:lang('附件名称')}</label>
					<div class="controls">
						<input type="text" name="annex_name" value="{$annex_name}" class="form-control" required="required"/>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('材料种类')}</label>
					<div class="controls">
						<select name="stuff_type" class="form-control">
							<volist name="cate_name" id="vo">
								<option value="{$vo.id}" <if condition="$stuff_type eq $vo.id">selected</if>>{$vo.cate_name}</option>
							</volist>
						</select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('尺寸规格')}</label>
					<div class="controls">
						<input type="text" name="size" value="{$size}" class="form-control" required="required"/>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:lang('价格')}</label>
					<div class="controls">
						<input type="number" name="price" value="{$price}" class="form-control" required="required"/>
						<span class="form-required">*</span>
					</div>
				</div>
			</fieldset>
			<div class="form-actions">
				<input type="hidden" name="id" value="{$id}"/>
				<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
				<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

</body>
</html>